Skip to content

chore(MBA-1550): Upgrade Java from 17 to 21#172

Open
devin-ai-integration[bot] wants to merge 1 commit intoDevOpsfrom
devin/1777405202-java-21-upgrade
Open

chore(MBA-1550): Upgrade Java from 17 to 21#172
devin-ai-integration[bot] wants to merge 1 commit intoDevOpsfrom
devin/1777405202-java-21-upgrade

Conversation

@devin-ai-integration
Copy link
Copy Markdown

Summary

Upgrades the application's Java version from 17 to 21 as specified in MBA-1550. All compilation targets and Docker base images are updated accordingly.

Changes:

  • pom.xml: Updated java.version property from 17 to 21
  • pom.xml: Updated maven-compiler-plugin source/target from 1.8 to 21 (was incorrectly set to Java 8)
  • Dockerfile: Updated build stage from maven:3.8.3-openjdk-17 to maven:3.9-eclipse-temurin-21
  • Dockerfile: Updated runtime stage from openjdk:17-alpine to eclipse-temurin:21-jre-alpine (uses Eclipse Temurin, the modern successor to deprecated OpenJDK Docker images)

Build validated locally: mvn clean compile and mvn package both succeed with JDK 21.

Review & Testing Checklist for Human

  • Verify the application starts successfully with JDK 21 (java -jar target/bankapp-0.0.1-SNAPSHOT.jar)
  • Verify the Docker multi-stage build completes: docker build -t bankapp .
  • Confirm existing functionality (login, transactions) works as expected on JDK 21

Notes

  • The maven-compiler-plugin source/target was previously set to 1.8 (Java 8), which was inconsistent with the java.version property of 17. This has been corrected to 21 to match the new Java version.
  • The Dockerfile base images were migrated from deprecated openjdk images to eclipse-temurin, which is the recommended replacement.
  • README references to openjdk-17-jre are for Jenkins installation and are out of scope for this change.

Link to Devin session: https://app.devin.ai/sessions/51d3c1ca0b2d4dcda99fcfeee54209c9

- Update java.version property from 17 to 21 in pom.xml
- Update maven-compiler-plugin source/target from 1.8 to 21
- Update Dockerfile build stage from maven:3.8.3-openjdk-17 to maven:3.9-eclipse-temurin-21
- Update Dockerfile runtime stage from openjdk:17-alpine to eclipse-temurin:21-jre-alpine
@devin-ai-integration
Copy link
Copy Markdown
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@staging-devin-ai-integration
Copy link
Copy Markdown

Devin Review

Status Commit
⚪ Not started

Open in Devin Review (Staging)

💡 Connect your GitHub account to enable automatic code reviews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants